#include <jni.h>
#include <string>
#include <libtorrent/version.hpp>

extern "C"
JNIEXPORT jstring JNICALL
Java_cn_nexttec_lib_1torrent_TorrentUtils_stringFromJNI(JNIEnv* env, jobject /* this */) {
    std::string version = libtorrent::version();  // 正确获取版本
    return env->NewStringUTF(version.c_str());
}
